﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Exporter.Reporting.Models
{
    public class AgencyReport
    {
        private ERPStore.Settings.WebSiteSettings m_Settings;

        public AgencyReport(ERPStore.Settings.WebSiteSettings inner)
        {
            this.m_Settings = inner;
        }

        public string SocialStatus
        {
            get
            {
                return m_Settings.Contact.SocialStatus;
            }
        }

        public string Street
        {
            get
            {
                return m_Settings.Contact.DefaultAddress.Street;
            }
        }

        public string ZipCode
        {
            get
            {
                return m_Settings.Contact.DefaultAddress.ZipCode;
            }
        }

        public string City
        {
            get
            {
                return m_Settings.Contact.DefaultAddress.City;
            }
        }

        public string CountryName
        {
            get
            {
                return m_Settings.Contact.DefaultAddress.Country.Name;
            }
        }

        public string WebSite 
        {
            get
            {
                return string.Format("http://{0}", m_Settings.DefaultUrl);
            }
        }

        public string Email
        {
            get
            {
                return m_Settings.Contact.ContactEmail;
            }
        }

        public string LogoUrl 
        {
            get
            {
                return GlobalConfiguration.Configuration.Settings.LogoFullUrl;
            }
        }

        public string TvaNumber
        {
            get
            {
                return m_Settings.Contact.VATNumber;
            }
        }

        public string ApeCode
        {
            get
            {
                return m_Settings.Contact.NafCode;
            }
        }

        public string Siret
        {
            get
            {
                return m_Settings.Contact.SiretNumber;
            }
        }

        public string Rcs
        {
            get
            {
                return m_Settings.Contact.RcsNumber;
            }
        }

        public string FaxNumber
        {
            get
            {
                return m_Settings.Contact.ContactFaxNumber;
            }
        }

        public string PhoneNumber
        {
            get
            {
                return m_Settings.Contact.ContactPhoneNumber;
            }
        }
    }
}
